package com.honglv.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;

import java.time.LocalDateTime;

/**
 * @Auther: 生
 * @Date: 2024/03/17/19:48
 * @Description:管理员
 */
@Getter
@Builder
@AllArgsConstructor
@TableName("tb_admin")
public class Admin {
    private static final long serialVersionUID = 1L;

    public Admin() {
    }

    private Long id;

    //昵称
    private String username;

    //密码
    private String password;

    //手机
    private String phone;

    //姓名
    private String name;

    //年龄
    private Integer age;

    //性别 女 0 男 1
    private Integer sex;

    //身份证号
    private String idNumber;

    //头像
    private String avatar;

    //微信用户唯一标识
    private String openid;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //邀请码
    private String code;

    //邀请人id
    private Long inviterId;

}
